home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.4 Applications 1997 August / SGI IRIX 6.4 Applications 1997 August.iso / dist / print.idb / usr / share / catman / a_man / cat1 / lpc.z / lpc
Encoding:
Text File  |  1997-07-30  |  5.0 KB  |  133 lines

  1.  
  2.  
  3.  
  4. LLLLPPPPCCCC((((1111MMMM))))                         PPPPrrrriiiinnnnttttiiiinnnngggg TTTToooooooollllssss                         LLLLPPPPCCCC((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      lpc - BSD line printer control program
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ////uuuussssrrrr////eeeettttcccc////llllppppcccc [ command [ argument ... ] ]
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      _L_p_c is used by the system administrator to control the operation of the
  16.      line printer system. For each line printer configured in /etc/printcap,
  17.      _l_p_c may be used to:
  18.  
  19.      +o    disable or enable a printer,
  20.  
  21.      +o    disable or enable a printer's spooling queue,
  22.  
  23.      +o    rearrange the order of jobs in a spooling queue,
  24.  
  25.      +o    find the status of printers, and their associated spooling queues
  26.           and printer daemons.
  27.  
  28.      Without any arguments, _l_p_c will prompt for commands from the standard
  29.      input.  If arguments are supplied, _l_p_c interprets the first argument as a
  30.      command and the remaining arguments as parameters to the command.  The
  31.      standard input may be redirected causing _l_p_c to read commands from file.
  32.      Commands may be abbreviated; the following is the list of recognized
  33.      commands.
  34.  
  35.      ? [ command ... ]
  36.  
  37.      help [ command ... ]
  38.           Print a short description of each command specified in the argument
  39.           list, or, if no arguments are given, a list of the recognized
  40.           commands.
  41.  
  42.      abort { all | printer ... }
  43.           Terminate an active spooling daemon on the local host immediately
  44.           and then disable printing (preventing new daemons from being started
  45.           by _l_p_r) for the specified printers.
  46.  
  47.      clean { all | printer ... }
  48.           Remove any temporary files, data files, and control files that
  49.           cannot be printed (i.e., do not form a complete printer job) from
  50.           the specified printer queue(s) on the local machine.
  51.  
  52.      disable { all | printer ... }
  53.           Turn the specified printer queues off.  This prevents new printer
  54.           jobs from being entered into the queue by _l_p_r.
  55.  
  56.      down { all | printer } message ...
  57.           Turn the specified printer queue off, disable printing and put
  58.           _m_e_s_s_a_g_e in the printer status file. The message doesn't need to be
  59.           quoted, the remaining arguments are treated like _e_c_h_o(1).  This is
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. LLLLPPPPCCCC((((1111MMMM))))                         PPPPrrrriiiinnnnttttiiiinnnngggg TTTToooooooollllssss                         LLLLPPPPCCCC((((1111MMMM))))
  71.  
  72.  
  73.  
  74.           normally used to take a printer down and let others know why (lpq
  75.           will indicate the printer is down and print the status message).
  76.  
  77.      enable { all | printer ... }
  78.           Enable spooling on the local queue for the listed printers. This
  79.           will allow _l_p_r to put new jobs in the spool queue.
  80.  
  81.      exit
  82.  
  83.      quit
  84.           Exit from lpc.
  85.  
  86.      restart { all | printer ... }
  87.           Attempt to start a new printer daemon. This is useful when some
  88.           abnormal condition causes the daemon to die unexpectedly leaving
  89.           jobs in the queue.  _L_p_q will report that there is no daemon present
  90.           when this condition occurs. If the user is the super-user, try to
  91.           abort the current daemon first (i.e., kill and restart a stuck
  92.           daemon).
  93.  
  94.      start { all | printer ... }
  95.           Enable printing and start a spooling daemon for the listed printers.
  96.  
  97.      status { all | printer ... }
  98.           Display the status of daemons and queues on the local machine.
  99.  
  100.      stop { all | printer ... }
  101.           Stop a spooling daemon after the current job completes and disable
  102.           printing.
  103.  
  104.      topq printer [ jobnum ... ] [ user ... ]
  105.           Place the jobs in the order listed at the top of the printer queue.
  106.  
  107.      up { all | printer ... }
  108.           Enable everything and start a new printer daemon. Undoes the effects
  109.           of _d_o_w_n.
  110.  
  111. FFFFIIIILLLLEEEESSSS
  112.      /etc/printcap           printer description file
  113.      /usr/spool/*            spool directories
  114.      /usr/spool/*/lock       lock file for queue control
  115.  
  116. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  117.      lpd(1M), lpr(1), lpq(1), lprm(1), printcap(4)
  118.  
  119. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  120.      ?Ambiguous command      abbreviation matches more than one command
  121.      ?Invalid command        no match was found
  122.      ?Privileged command     command can be executed by root only
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.